﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.ExternalConnections.CApECExcelImportParams
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using EngineeringInternalExtension;
using System.Collections.Generic;


namespace DnProcessSimulateCommands.ExternalConnections;

internal class CApECExcelImportParams : CApECExcelBaseParams
{
  internal CApECExcelImportParams.eImportResult ImportResult;
  internal string FilePath;
  internal List<string> Notifications;
  internal List<string> Warnings;
  internal List<string> Errors;
  internal List<ITxPlcExternalConnectionDataEx> ImportedDataList;

  internal bool ImportFailed
  {
    get
    {
      return this.ImportResult != CApECExcelImportParams.eImportResult.None && this.ImportResult != CApECExcelImportParams.eImportResult.UserAbort;
    }
  }

  internal void PrepareDefaultOutput()
  {
    this.ImportResult = CApECExcelImportParams.eImportResult.None;
    this.FilePath = (string) null;
    this.Notifications = new List<string>(0);
    this.Warnings = new List<string>(0);
    this.Errors = new List<string>(0);
    this.ImportedDataList = new List<ITxPlcExternalConnectionDataEx>(0);
  }

  internal void ClearOutput()
  {
    this.ImportResult = CApECExcelImportParams.eImportResult.None;
    this.FilePath = (string) null;
    this.Notifications = (List<string>) null;
    this.Warnings = (List<string>) null;
    this.Errors = (List<string>) null;
    this.ImportedDataList = (List<ITxPlcExternalConnectionDataEx>) null;
  }

  internal enum eImportResult
  {
    None,
    UserAbort,
    ExcelFailed,
    MissingColumnFound,
    DuplicatedColumnFound,
    DataMismatch,
  }
}
